import { createBrowserRouter } from "react-router";
import NotFound from "../views/NotFound/NotFound";
import Home from "../views/Home/";
import Statistics from "../views/Statistics";
import About from "../views/About";
import Help from "../views/Help";
import Layout from "../layout/Layout";
import Search from "@/views/Search";

const router = createBrowserRouter([
  {
    path: "/",
    Component: Layout,
    children: [
      {
        index: true,
        Component: Home,
      },
      // {
      //   path: "statistics",
      //   Component: Statistics,
      // },
      {
        path: "about",
        Component: About,
      },
      {
        path: "help",
        Component: Help,
      },
      {
        path: "search",
        Component: Search,
      },
    ],
  },

  {
    path: "*",
    Component: NotFound,
  },
]);

export default router;
